package com.sample.base.base;

import androidx.annotation.NonNull;
import androidx.appcompat.widget.Toolbar;

import com.google.android.material.navigation.NavigationView;

/**
 * 仅限于DrawerLayout+NavigationView+Toolbar
 * theme 继承与xxx.NoActionBar
 */
public abstract class BasicDrawerActivity extends BaseActivity {

    public abstract @NonNull
    Toolbar toolbar();

    public abstract @NonNull
    NavigationView navigationView();

    @Override
    public void statusBar() {
        super.statusBar();
        /*if (Build.VERSION.SDK_INT == Build.VERSION_CODES.KITKAT) {
            mImmersionBar.transparentStatusBar().titleBar(toolbar()).init();
            navigationView().setFitsSystemWindows(false);
        } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            ActionBar supportActionBar = getSupportActionBar();
            if (supportActionBar != null) {
                supportActionBar.setElevation(0);
            }
            mImmersionBar.titleBar(toolbar()).init();
            toolbar().setFitsSystemWindows(true);
        }*/
    }
}
